]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Add a timeout when switching pages during DnD
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 23 Nov 2019 21:25:00 +0000 (22:25 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Sun, 24 Nov 2019 18:35:30 +0000 (19:35 +0100)
commit5a287a42057d896bd21181cbfbf51cf1d6aef545
tree2b9e33f3552571313b822bbfc44a70692aa75f9b
parentb0c819249677c4f981f240e3cfff40a52c40787c
appDisplay: Add a timeout when switching pages during DnD

Currently when dragging an icon to the space above or below the appGrid
to switch pages, we do so very quickly without checking when the last
page-switch happened. This makes it hard to move icons to pages which
are not the first or the last one, since the other pages are skipped
very quickly.

To fix this, add a timeout of 1 second that blocks switching pages after
a page-switch using drag overshoot occured.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1693
js/ui/appDisplay.js